/*
{
    "content": [
      {
        "id": "622574d336a9ba1be763dad9",
        "createTime": "2022-03-07 10:58:27",
        "updateTime": "2022-12-07 19:56:05",
        "isDeleted": 0,
        "param": {
          "hostypeString": "三级乙等",
          "fullAddress": "北京市市辖区西城区"
        },
        "hoscode": "1000_1",
        "hosname": "中国人民解放军总医院(301医院)",
        "hostype": "2",
        "provinceCode": "110000",
        "cityCode": "110100",
        "districtCode": "110102",
        "address": "",
        "logoData": "",
        "intro": ""
        "status": 1,
        "bookingRule": {
          "cycle": 10,
          "releaseTime": "08:30",
          "stopTime": "12:30",
          "quitDay": -1,
          "quitTime": "15:30",
          "rule": [
            "西院区预约号取号地点：西院区门诊楼一层大厅挂号窗口取号"
          ]
        }
      }
    ],
    "pageable": {
      "sort": {
        "sorted": true,
        "unsorted": false,
        "empty": false
      },
      "pageNumber": 0,
      "pageSize": 1,
      "offset": 0,
      "paged": true,
      "unpaged": false
    },
    "totalPages": 20,
    "totalElements": 20,
    "last": false,
    "first": true,
    "sort": {
      "sorted": true,
      "unsorted": false,
      "empty": false
    },
    "numberOfElements": 1,
    "size": 1,
    "number": 0,
    "empty": false
  }
*/
export interface BookingRule {
  cycle: number;
  releaseTime: string;
  stopTime: string;
  quitDay: number;
  quitTime: string;
  rule: [string];
}

export interface ContentItem {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    hostypeString: string;
    fullAddress: string;
  };
  hoscode: string;
  hosname: string;
  hostype: string;
  provinceCode: string;
  cityCode: string;
  districtCode: string;
  address: string;
  logoData: string;
  intro: string;
  status: number;
  bookingRule: BookingRule;
  route?: string;
}

export type Content = ContentItem[];

export interface HospitalList {
  content: Content;
  totalElements: number;
}

//省的类型定义

export interface ProvinceItem {
  createTime: string;
  dictCode: null;
  hsaChldren: boolean;
  id: number;
  isDeleted: number;
  name: string;
  param: {};
  parentId: number;
  updateTime: string;
  value: string;
}

export type Province = ProvinceItem[];

//排班左侧

export type ChildrenList = DepartmentItem[];

export interface DepartmentItem {
  children: ChildrenList;
  depcode: string;
  depname: string;
  disabled: boolean;
}

export type DepartmentList = DepartmentItem[];

//日期的数据

export interface BookingScheduleItem {
  availableNumber: number;
  dayOfWeek: string;
  docCount: number;
  reservedNumber: number;
  status: null;
  workDate: string;
  workDaeMd: null;
}

export type BookingScheduleList = BookingScheduleItem[];

export interface BookingSchedule {
  bookingScheduleList: BookingScheduleList;
  total: number;
  baseMap: {
    hosname: string;
  };
}

//医生信息
/*
[
  {
    "id": "6225753536a9ba1be763dc77",
    "createTime": "2022-03-07 11:00:05",
    "updateTime": "2022-03-07 11:00:05",
    "isDeleted": 0,
    "param": {
      "dayOfWeek": "周三",
      "depname": "多发性硬化专科门诊",
      "hosname": "北京人民医院"
    },
    "hoscode": "1000_0",
    "depcode": "200040878",
    "title": "医师",
    "docname": "",
    "skill": "内分泌科常见病。",
    "workDate": "2022-04-27",
    "workTime": 0,
    "reservedNumber": 33,
    "availableNumber": 22,
    "amount": 100,
    "status": 1,
    "hosScheduleId": "109"
  },
]
*/

export interface DoctorItem {
  id: string;
  createTime: string;
  updateTime: string;
  isDeleted: number;
  param: {
    dayOfWeek: string;
    depname: string;
    hosname: string;
  };
  hoscode: string;
  depcode: string;
  title: string;
  docname: string;
  skill: string;
  workDate: string;
  workTime: number;
  reservedNumber: number;
  availableNumber: number;
  amount: number;
  status: number;
  hosScheduleId: string;
}

export type DoctorList = DoctorItem[];
